//
//  touchView.h
//  自定义可动图表
//
//  Created by yuklng on 16/2/17.
//  Copyright © 2016年 yuklng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "pointObject.h"
#define _width [UIScreen mainScreen].bounds.size.width
#define _height [UIScreen mainScreen].bounds.size.height
//协议
@protocol scroolDelegate;


@interface touchView : UIControl

@property (weak, nonatomic) id<scroolDelegate> delegate;
@property (nonatomic,assign) CGFloat xSpacing;
@property (nonatomic,assign) CGFloat ySpacing;

@property (nonatomic,strong) NSMutableArray* cloudArray;

-(id)initWithFrame:(CGRect)frame;

-(id)initWithFrame:(CGRect)frame topLine:(int)maxNumber lowestLine:(int)minNumber autoLayout:(BOOL)autoLayout;

//设置数据
-(void)setDataArray:(NSArray*)array;

@end


@protocol scroolDelegate <NSObject>

@required
-(void)touchSwitch:(BOOL)choice dataArray:(NSArray*)dataArray;

@end
